import unittest

version = 23

class TestSkip(unittest.TestCase):
    @unittest.skip('测试不执行')
    def testskip1(self):
        print('方法一')
    @unittest.skipIf(version > 20, '版本大于指定不执行')
    def testskip2(self):
        print('方法二')

    def testskip3(self):
        print('方法三')